@import '../public/less/variables.less';

body {
    background-color: @base_bg;
}

#app {
    .main {
        margin-top: 20*@base_size;
        min-height: 600*@base_size;
        .my_info {
            width: 255*@base_size;
            background-color: white;
            font-size: 16*@base_size;
            font-weight: bold;
            position: fixed;
            top: 120*@base_size;
            
            >div:nth-of-type(1){
                height: 112*@base_size;                
                padding: 21*@base_size;
                
                img {
                    max-width: 70*@base_size;
                    height: 100%;
                    vertical-align: middle;
                    margin-right: 20*@base_size;
                }
            }
            >div:nth-of-type(2){
                >li{
                    height: 60*@base_size;
                    width: 50%;
                    float: left;
                    border-right: 1px solid @color_line;
                    border-bottom: 1px solid @color_line;
                    color: #666666;
                }
                >li:nth-of-type(1),>li:nth-of-type(2){
                    border-top: 1px solid @color_line;
                }
                .active{
                    color: @base_color;
                }
            }
        }
        >div:nth-of-type(2){
            padding-left: 275px;
            min-height: 600*@base_size;            
            //公共样式
            //名称
            .type_title{
                height: 60*@base_size;
                line-height: 60*@base_size;
                letter-spacing: 2px;
                font-size: 16*@base_size;
                font-weight: bold;
                border-bottom: 1px solid @color_line;
                padding-left: 25*@base_size;
                background-color: white;
            }
            >div{               
                background-color: white;    
            }
            
            //社区
            .community_list{             
                //新闻列表
                .community_news{
                    //上半部分
                    .content{
                        background-color: white;
                        padding: 22*@base_size;
                        margin-bottom: 20px;
                        border-bottom: 1px solid @color_line;
                        >div:nth-of-type(1){
                            height: 50*@base_size;
                            >img{
                                width: 50*@base_size;
                                height: 100%;      
                                float: left;                          
                            }
                            >div{
                                margin-left: 20*@base_size;
                                float: left;
                                height: 100%;
                                padding-top: 5px;
                                align-items:flex-start;
                                >span:nth-of-type(1){
                                    font-size: 16px;
                                    font-weight: bold;
                                }
                            }
                        }
                        >div:nth-of-type(2){
                            margin-left: 70*@base_size;
                            padding: 10px 0;
                        }
                        >div:nth-of-type(3){
                            margin-left: 70*@base_size;
                            padding-bottom: 20*@base_size;
                            max-width: 600*@base_size;
                            overflow: hidden;
                            >div{
                                float: left;
                                width: 175*@base_size;
                                height: 175*@base_size;
                                margin-right: 5px;
                                margin-bottom: 5px;
                                background-color: lightgray;
                            }
                        }
                    }
                    //下半部分
                    .icons{
                        height: 90*@base_size;
                        padding: 30*@base_size 0;
                        overflow: hidden;        
                        margin-top: 10px;                
                        border-top: 1px solid lighten(@color_line,10%);
                        margin: 0 -22*@base_size;
                        >li{
                            
                            height: 100%;
                            flex: 1;
                            border-right: 1px solid black;
                            img{
                                margin-right: 5px;
                            }
                        }
                        >li:nth-last-of-type(1){
                            border: none;
                        }
                    }
                }
            }
            //我的回复
            .my_back{
                //名称
                .type_title{
                    height: 60*@base_size;
                    line-height: 60*@base_size;
                    letter-spacing: 2px;
                    font-size: 16*@base_size;
                    font-weight: bold;
                    border-bottom: 1px solid @color_line;
                    padding-left: 25*@base_size;
                    background-color: white;
                }
                //回复列表
                .back_news{
                    @padding_left:95;
                    @img_w:50;
                    .content{
                        position: relative;
                        padding: 20*@base_size   20*@base_size 10*@base_size @padding_left*@base_size;
                        background-color: white;
                        margin-bottom: 20*@base_size;
                        min-height: 110*@base_size;
                        border-bottom: 1px solid @color_line;
                        >div:nth-of-type(1){
                            position: absolute;
                            text-align: center;
                            left: 0;
                            top: 20*@base_size;
                            width: @padding_left*@base_size;
                            height: 100%;
                            >div:nth-of-type(1){
                                width: @img_w*@base_size;
                                height: @img_w*@base_size;
                                margin: 0 auto;
                                margin-bottom: 10px;
                                overflow: hidden;
                                img{
                                    width: 100%;
                                    height: 100%;
                                }                                
                            }
                            span{
                                width: 90%;
                                display: inline-block;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                                overflow: hidden;
                            }
                        }
                        >div:nth-of-type(2){
                            //名称，删除
                            >div:nth-of-type(1){
                                font-size: 16px;
                                min-height: 30*@base_size;
                                align-items: flex-start;
                            }
                            >div:nth-of-type(2){
                                padding: 6px 0;
                                color: @base_color;
                            }
                            //时间
                            >div:nth-of-type(3){                                
                                height: 25*@base_size;
                                color:@color_content;
                                line-height: 25*@base_size;
                            }
                        }
                    }
                }
            }
            //我要发帖
            .posting{
                padding: 25*@base_size;
                background-color: white;
                form label{
                    float: left;
                }
                .select_label{
                   margin-left: -10px;
                    padding: 10px 0;
                    li{
                        float: left;
                        padding: 10*@base_size 15*@base_size;
                        background-color: @base_color;
                        color: white;
                        margin-left: 10px;
                        margin-bottom: 10px;
                        &:hover{
                            cursor: pointer;
                        }
                    } 
                    button{
                       margin-left: 10px;
                        margin-bottom: 10px; 
                    }
                }
                .all_label{
                    margin-left: -10px;
                    padding: 10px 0;
                    border: 1px solid @base_color;
                    overflow: hidden;
                    li{
                        float: left;
                        padding: 10*@base_size 15*@base_size;
                        background-color: @base_color;
                        color: white;
                        margin-left: 10px;
                        margin-bottom: 10px;
                        &:hover{
                            cursor: pointer;
                        }
                    }
                }
                .imgs{
                    overflow: hidden;
                    padding-left: 15px;
                    >div{
                        overflow: hidden;
                        background-color: @base_color;
                        padding: 7px 7px 7px 0;
                        .img{                        
                            float: left;
                            width: 166*@base_size;
                            height: 166*@base_size;
                            margin-left: 7px;
                            background-color: white;
                            position: relative;
                            overflow: hidden;
                        }
                        .add{
                            text-align: center;
                            position: relative;
                            img{
                                width: 40%;
                                height: 40%;                             
                            }
                        }
                    }
                    
                }
                //提交
                .submit{
                    margin-left: 45px;
                }
            }
            //我的帖子
            .my_post_list{
                //上半部分
                .content{
                    background-color: white;
                    padding: 22*@base_size;
                    margin-bottom: 20px;                    
                    @my_post_list_padding_left:70;
                    >div:nth-of-type(1){
                        height: 50*@base_size;
                        padding-left: @my_post_list_padding_left*@base_size;
                        position: relative;
                        align-items: flex-start;
                        >img{
                            width: 50*@base_size;
                            height: 100%;      
                            position: absolute;
                            left: 10*@base_size;
                            top: 0;                      
                        }
                        >div{
                            width: 100%;
                            height: 100%;
                            align-items:flex-start;
                            >span:nth-of-type(1){
                                font-size: 16px;
                                font-weight: bold;
                            }
                        }
                    }
                    >div:nth-of-type(2){
                        margin-left: @my_post_list_padding_left*@base_size;
                        padding:0 0 5px 0;
                        margin-top: -5px;
                    }
                    >div:nth-of-type(3){
                        margin-left: @my_post_list_padding_left*@base_size;
                        padding: 10px 0;
                    }
                    >div:nth-of-type(4){
                        margin-left: @my_post_list_padding_left*@base_size;
                        padding-bottom: 20*@base_size;
                        max-width: 600*@base_size;
                        overflow: hidden;
                        >div{
                            float: left;
                            width: 175*@base_size;
                            height: 175*@base_size;
                            margin-right: 5px;
                            margin-bottom: 5px;
                            background-color: lightgray;
                        }
                    }
                }
                //下半部分
                .icons{
                    height: 90*@base_size;
                    padding: 30*@base_size 0;
                    overflow: hidden;        
                    margin-top: 10px;                
                    border-top: 1px solid @color_line;
                    margin: 0 -22*@base_size;
                    >li{
                        width: 33%;
                        height: 100%;
                        float: left;
                        border-right: 1px solid black;
                        img{
                            margin-right: 5px;
                        }
                    }
                    >li:nth-last-of-type(1){
                        border: none;
                    }
                }
            }
        }
        
    }
}
